﻿@{
    ViewBag.Title = "Common Command";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<ol class="breadcrumb">
    <li><a href="/Home/Home">Home</a></li>
    <li><a href="/Common/CommonIntoduction"> Sanelib Common</a></li>
    <li class="active">Enumeration</li>
</ol>

<div id="introduction">
    <h1 class="text-left">Enumeration</h1>
    <br/>An Enumeration is a collection of items that is a complete, ordered listing of all of the items in that collection.
    <p>Enumeration is not Add Null Values.Start From Zero But in this Project Start From One.HolidayType Example Show in Below. 
    <br/><p><strong>HolidayType</strong></p>
    <pre><code><br/>public class HolidayType : Enumeration&lt;holidaytype&gt;<br/>{<br />public HolidayType(string value, string displayName, int displayOrder) : base(value, displayName, displayOrder)<br/>{<br/>}<br/>public static readonly HolidayType Weekly = new HolidayType("W", "This day on each week", 1);<br/>public static readonly HolidayType Monthly = new HolidayType("M", "This date on each month", 2);<br/>public static readonly HolidayType Yearly = new HolidayType("Y", "This date on each year", 3);<br/>public static readonly HolidayType DayOnlly = new HolidayType("D", "On this date only", 4);<br/>public static readonly HolidayType Exceptional = new HolidayType("E", "We are open on this day", 5);<br/>}</code></pre>
    <p>In this example class HolidayType is extend By Enumeration.Holidaytype has One Constructor with three perameter value,displayName and displayOrder.this Value is inherited from baseclass called BaseEnumeration.</p>
     <br/>In Above HolidayType Holiday Enums applied to 1 for This day on each week,2 for This date on each month ,3 for This date on each year ,4 for On this date only ,5 for We are open on this day. 
    <p><strong>Role</strong></p>
    <br/><pre><code>public class Role : Enumeration&lt;role&gt;<br />{<br />public Role(string value, string displayName, int displayOrder) : base(value, displayName, displayOrder)<br />{<br />}<br />public static readonly Role ApplicationOwner = new Role("AO", "Application Owner", 1);<br />public static readonly Role ViewOnlyUser = new Role("VO", "View Only User", 2);<br />public static readonly Role Member = new Role("MB", "Member", 3);<br />}</code></pre>
        <br />On Precedence of Roll in an system.Enums Applied to 1 For Application Owner,2 for View Only User,3 for Member.<br />
    <p><strong>AlertStatus</strong></p>
    <pre><code>public class AlertStatus : Enumeration&lt;alertstatus&gt;{<br/>public AlertStatus(string value, string displayName, int displayOrder) : base(value, displayName, displayOrder)<br />{<br/>}<br/>public static AlertStatus Pending = new AlertStatus("PN", "Pending",0);<br/>public static AlertStatus Processing = new AlertStatus("PR", "Processing",1);<br/>public static AlertStatus Sent = new AlertStatus("ST", "Sent",2);<br/>public static AlertStatus Skipped =  new AlertStatus("SK", "Skipped",3);<br/>}</code></pre>
   <br />In Above AlertStatus that applied Enum for Status of Task 0 For Pandding,1 for Processing, 2 For Sent,3 For Skipped.  
    <br/>Enumerations also include EntityType , Permission.
</div>
      